package com.luomu.base.api.cookBook.address.service;

import com.luomu.base.api.bo.RspBaseBO;
import com.luomu.base.api.cookBook.address.bo.CommonRspBO;
import com.luomu.base.api.cookBook.address.bo.ExpressParseAddressReqBO;
import com.luomu.base.api.cookBook.address.bo.ExpressParseAddressRspBO;
import org.springframework.web.bind.annotation.*;

public interface ExpressAddressService {

    /**
     * 初始化地址文件
     */
    @ResponseBody
    @PostMapping(value = "/initAddressJson")
    RspBaseBO initAddressJson();

    /**
     * 初始化地址JSON-抄一个同步接口出来-jack.liu
     * @return
     */
    @ResponseBody
    @PostMapping(value = "/initAddressJsonNow")
    CommonRspBO initAddressJsonNow();

    // 查询集采数据
    @ResponseBody
    @PostMapping(value = "/expressParseAddress")
    ExpressParseAddressRspBO expressParseAddress(@RequestBody ExpressParseAddressReqBO req);

}
